package com.gitee.streamrabbitmqprovider.controller;

import com.gitee.streamrabbitmqprovider.message.IMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName MessageController
 * @Description TODO
 * @Author xiongchao
 * @Date 2021/1/4 15:49
 **/
@RestController
public class MessageController {

    @Autowired
    private IMessageService service;

    @GetMapping("/send")
    public String send(){
        return service.send();
    }
}
